package com.tensquare.rabbit.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "itcast3")
@Component
public class Customer3 {

    @RabbitHandler
    public void getMSG(String msg){
        System.out.println("itcast3: " + msg);
    }
}
